﻿#include <fstream>
#include <iostream>
#include <map>

//物品信息
class Good
{
public:
    Good();
    Good(std::string name,float price,std::string prop,int changeVal);
    std::string name;
    float price;
    //影响属性
    std::string prop;
    //变化量
    int changeVal;
};

class Shop
{
public:
    Shop();
    void Init(/* args */);
    int AddGood(Good newGood);
    int DelGood(Good delGood);
    ~Shop();
    std::string shopStr;//读入的字符串
private:
    std::map<std::string,Good> m_goods; //物品列表
    std::fstream shopFile;
};

